package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="Calendar"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Calendar implements Serializable {

    /** identifier field */
    private Integer workId;

    /** nullable persistent field */
    private String createDate;

    /** nullable persistent field */
    private String beginTime;

    /** nullable persistent field */
    private String endTime;

    /** persistent field */
    private String workType;

    /** nullable persistent field */
    private String workContent;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private Long timerId;

    /** full constructor */
    public Calendar(String createDate, String beginTime, String endTime, String workType, String workContent, String userId, String latestDate, String remark, Long timerId) {
        this.createDate = createDate;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.workType = workType;
        this.workContent = workContent;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
        this.timerId = timerId;
    }

    /** default constructor */
    public Calendar() {
    }

    /** minimal constructor */
    public Calendar(String workType, String userId) {
        this.workType = workType;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="WorkID"
     *             unsaved-value="0"
     *         
     */
    public Integer getWorkId() {
        return this.workId;
    }

    public void setWorkId(Integer workId) {
        this.workId = workId;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="BeginTime"
     *             length="23"
     *         
     */
    public String getBeginTime() {
        return this.beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    /** 
     *            @hibernate.property
     *             column="EndTime"
     *             length="23"
     *         
     */
    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /** 
     *            @hibernate.property
     *             column="WorkType"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getWorkType() {
        return this.workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    /** 
     *            @hibernate.property
     *             column="WorkContent"
     *             length="2147483647"
     *         
     */
    public String getWorkContent() {
        return this.workContent;
    }

    public void setWorkContent(String workContent) {
        this.workContent = workContent;
    }

    /** 
     *            @hibernate.property
     *             column="UserID"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="TimerID"
     *             length="18"
     *         
     */
    public Long getTimerId() {
        return this.timerId;
    }

    public void setTimerId(Long timerId) {
        this.timerId = timerId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("workId", getWorkId())
            .toString();
    }

}
